package com.deep.bus.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dell
 * @create 2022/7/25 15:38
 */
@RestController
@RefreshScope
public class InfoRest {

    @Value("${test.name:test}")
    private String testName;

    @GetMapping("/getTest")
    public String getTest() {
        return testName;
    }

}
